package com.ghh.swing;

import java.util.Enumeration;

import javax.swing.UIDefaults;
import javax.swing.plaf.nimbus.NimbusLookAndFeel;

import junit.framework.TestCase;

public class LookAndFeel extends TestCase {

	public void testPrintUIDefaults() {
		UIDefaults def = new NimbusLookAndFeel().getDefaults();
		Enumeration<Object> keys = def.keys();
		while (keys.hasMoreElements()) {
			Object item = keys.nextElement();
			if (item instanceof String && !((String) item).matches("^PasswordField.*$")) {
				continue;
			}
			System.out.println(item + " = " + def.get(item));
		}
	}
}
